<template>

    <div id="app">
      <a-config-provider :locale="locale">
        <router-view />
      </a-config-provider>
    </div>

</template>

<script>
import zh_CN from "ant-design-vue/lib/locale-provider/zh_CN";
import moment from "moment";
import "moment/locale/zh-cn";

moment.locale("zh-cn");

export default {
  name: "App",
  data() {
    return {
      locale: zh_CN,
    };
  },
  mounted: function () {
      //此方法刷新页面时也会执行

      // window.addEventListener('beforeunload',() => {
      //   localStorage.removeItem('value');
      // })
    },
    beforeDestroy() {
    localStorage.removeItem("navType")
    }
};
</script>

<style lang="less">
@import "assets/styles/varibless.less";
#app {
  width: 100%;
  height: 100%;
}
</style>
